package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by Miracle yaochengwei on 2020/8/2 19:05
 */
//mapper里面没有接口，有个注解，扫描mapper
@SpringBootApplication
@ComponentScan(basePackages = "com.atguigu") //扫描配置类包所在路径
//到包里面找到内容进行扫描
@EnableDiscoveryClient  //nacos注册
@EnableFeignClients
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
